import request from '@/utils/request'

// 查询apk最新升级信息
export function fetchApkUpdate(data) {
  return request({
    url: '/operation/opScreenInvoke/apkUpdate',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// 指令执行结果接口
export function fetchCommandResultInf(data) {
  return request({
    url: '/operation/opScreenInvoke/commandResultInf',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// MQTT升级APK调试
export function fetchMqttApkDev(data) {
  return request({
    url: '/operation/opScreenInvoke/mqttApkDev',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// MQTT指令接口调试
export function fetchMqttCommandDev(data) {
  return request({
    url: '/operation/opScreenInvoke/mqttCommandDev',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// MQTT播放计划接口调试
export function fetchMqttScheduleDev(data) {
  return request({
    url: '/operation/opScreenInvoke/mqttScheduleDev',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// 屏注册接口
export function fetchRegisterDeviceInf({ serialNumber }) {
  return request({
    url: '/operation/opScreenInvoke/registerDeviceInf',
    method: 'post',
    params: { serialNumber },
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// 查询播放计划接口列表
export function fetchScheduleInf({ appVersion, reqDate, serialNumber }) {
  return request({
    url: '/operation/opScreenInvoke/scheduleInf',
    method: 'post',
    params: { appVersion, reqDate, serialNumber },
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}

// 往来单位列表
export function fetchScheduleResultInf(data) {
  return request({
    url: '/operation/opScreenInvoke/scheduleResultInf',
    method: 'post',
    data,
    port: { ENV_PORT: 8004 },
    ajaxType2: 'reqPost'

  })
}
